<?php
namespace app\api\model;

use think\Db;
use think\Model;

class MasterModel extends Model
{
        function masterlist() {
        $masters =  Db::name('master')->select();
        return  $masters;
	    }
	    function masterdetail($masterid) {
        $result = Db::name('master')->where('masterid',$masterid)->find();
        return $result;
    }
}